﻿using System;
using Microsoft.IdentityModel.SecurityTokenService;
using Microsoft.IdentityModel.Configuration;
using System.Security.Cryptography.X509Certificates;

namespace CodeCounsel.SharePoint2010.DigiD
{
    class DigiDSecurityTokenServiceConfiguration
        : SecurityTokenServiceConfiguration
    {
        public DigiDSecurityTokenServiceConfiguration(string issuerName,
            X509Certificate2 certificate)
            : base(issuerName, new X509SigningCredentials(certificate))
        {
            this.SecurityTokenService = typeof(DigiDSecurityTokenService);
        }
    }
}
